﻿namespace IBTrader.Indicator.CandleStick
{
    using IBTrader.Modules.Read;
    using IBTrader.Charts;
    using System;

    class BaseVolume : Base, IVolume
    {
        internal BaseVolume(Worker worker, int group, int interval, int pinterval) : base(worker, new ChartArgs { Group = group }, interval, pinterval) { }
        public void AddVolume(object _, Line line)
        {
            if (item != null)
                item.Volume += line.Price;
        }
    }
}
